registerTests([
function IndexOf_Test_0()
{
	var myArray = [8,6,7,5,3,0,9];
	var result = myArray.IndexOf(8);
	Assert.areNotEqual(result, -1);
	Assert.areEqual(result, 0);
},
function IndexOf_Test_1()
{
	var myArray = [1,1,1,1,1,1,1];
	var result = myArray.IndexOf(1);
	Assert.areNotEqual(result, -1);
	Assert.areEqual(result, 0);
},
function IndexOf_Test_Equality_0()
{
	var myArray = [{x:1, y:3}, {x:2, y:3}, {x:3, y:42}, {x:99, y:42}];
	var result = myArray.IndexOf({x:2, y:3}, "(a, b)=>a.x == b.x && a.y == b.y");
	Assert.areNotEqual(result, -1);
	Assert.areEqual(result, 1);
},
]);